<?php
/**
 * config_cn.php
 *
 * @copyright 2018 opencart.cn
 *
 * All Rights Reserved
 * @link http://guangdawangluo.com
 *
 * @author StifferChen <chenlin@opencart.cn>
 * @created 2018-05-24 23:28
 * @modified 2018-05-24 23:28
 */

// Regex email
if (!defined('PREG_EMAIL')) {
    define('PREG_EMAIL', '/^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/');
}

// Regex phone
if (!defined('PREG_PHONE')) {
    define('PREG_PHONE', '/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$/');
}

if (!defined('UPLOAD_SIZE_LIMIT')) {
    define('UPLOAD_SIZE_LIMIT', 2 * 1024 * 1024);
}